package com.ruoyi.teaching.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * 班级信息对象 teaching_class
 * 
 * @author ruoyi
 * @date 2022-03-21
 */
@Data
@Entity
public class TeachingClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班级编号 */
    @Id
    @GeneratedValue
    private Long classId;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String className;

    /** 学院编号 */
    @Excel(name = "学院编号")
    private Long collegeId;

    /** 1班级2办公室 */
    @Excel(name = "1班级2办公室")
    private Long code;

    /** 删除标识 */
    @Excel(name = "删除标识")
    private Long deleteSign;

    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }
    public void setCollegeId(Long collegeId) 
    {
        this.collegeId = collegeId;
    }

    public Long getCollegeId() 
    {
        return collegeId;
    }
    public void setCode(Long code) 
    {
        this.code = code;
    }

    public Long getCode() 
    {
        return code;
    }
    public void setDeleteSign(Long deleteSign) 
    {
        this.deleteSign = deleteSign;
    }

    public Long getDeleteSign() 
    {
        return deleteSign;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("classId", getClassId())
            .append("className", getClassName())
            .append("collegeId", getCollegeId())
            .append("code", getCode())
            .append("deleteSign", getDeleteSign())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
